﻿export default {
    props: ['title'],
    name: 'vant-my-button',
    data() {
        return {
            count: 0
        }
    },
    methods:
    {
        clickme()
        {
            this.count++;
            this.$emit('enlarge-text');
        }
    },
    template: `
    <van-button style="margin:5px;" type="primary" @click="clickme">
      You clicked me {{ count }} times.  ||  {{title}}
    </van-button>
    <slot></slot>
    `
}